package cn.cntv.app.ipanda.lovepanda.fragment;

import com.tencent.a.b.r;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;
import cn.cntv.app.ipanda.R;
import cn.cntv.app.ipanda.R.color;

public class LovePandaFragment extends Fragment implements OnClickListener{
    private static final String ARG_PARAM1 = "param1";
    private static final String ARG_PARAM2 = "param2";

    // TODO: Rename and change types of parameters
    private String mParam1;
    private String mParam2;
    private FragmentManager fm;
//    熊猫物语，熊猫你知道么，熊猫那些事儿，熊猫冷笑话，窝头电台，原创新闻，我是熊猫，喜鹊频道，青海湖捏鱼，旅游
    private ImageView lpanda_my;
     private TextView lpanda_title;
     private TextView lpanda_live,lpanda_lan,lpanda_known;
     private TextView lpanda_thing,lpanda_joke;
    private TextView lpanda_station,lpanda_news,lpanda_me;
    private TextView lpanda_pie,lpanda_finsh,lpanda_trip;
    public LovePandaFragment() {
        // Required empty public constructor
    }

    /**
     * Use this factory method to create a new instance of
     * this fragment using the provided parameters.
     *
     * @param param1 Parameter 1.
     * @param param2 Parameter 2.
     * @return A new instance of fragment LovePandaFragment.
     */
    // TODO: Rename and change types and number of parameters
    public static LovePandaFragment newInstance() {
        LovePandaFragment fragment = new LovePandaFragment();
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            mParam1 = getArguments().getString(ARG_PARAM1);
            mParam2 = getArguments().getString(ARG_PARAM2);
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
    	
      View view=  inflater.inflate(R.layout.fragment_love_panda, container, false);
      lpanda_my=(ImageView) view.findViewById(R.id.lpanda_my);
      lpanda_title=(TextView) view.findViewById(R.id.lpanda_title);
      lpanda_live=(TextView) view.findViewById(R.id.lpanda_live);
      lpanda_lan=(TextView) view.findViewById(R.id.lpanda_lan);
      lpanda_known=(TextView) view.findViewById(R.id.lpanda_known);
      lpanda_thing=(TextView) view.findViewById(R.id.lpanda_thing);
      lpanda_joke=(TextView) view.findViewById(R.id.lpanda_joke);
      lpanda_station=(TextView) view.findViewById(R.id.lpanda_station);
      lpanda_news=(TextView) view.findViewById(R.id.lpanda_news);
      lpanda_me=(TextView) view.findViewById(R.id.lpanda_me);
      lpanda_pie=(TextView) view.findViewById(R.id.lpanda_pie);
      lpanda_finsh=(TextView) view.findViewById(R.id.lpanda_finsh);
      lpanda_trip=(TextView) view.findViewById(R.id.lpanda_trip);
      fm=getChildFragmentManager();
      
      lpanda_my.setOnClickListener(this);
      lpanda_title.setOnClickListener(this);
      lpanda_live.setOnClickListener(this);
      lpanda_lan.setOnClickListener(this);
      lpanda_known.setOnClickListener(this);
      lpanda_thing.setOnClickListener(this);
      lpanda_joke.setOnClickListener(this);
      lpanda_station.setOnClickListener(this);
      lpanda_news.setOnClickListener(this);
      lpanda_me.setOnClickListener(this);
      lpanda_pie.setOnClickListener(this);
      lpanda_finsh.setOnClickListener(this);
      lpanda_trip.setOnClickListener(this);
      return view;
    }

	public void onDetach() {
        super.onDetach();
    }

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.lpanda_lan:
			break;

		default:
			break;
		}
	}

}
